#include <iostream>

using namespace std;

void foo()
{
  static int num = 1;
  num++;
  cout << "num = " << num << endl;
}

int main()
{
  foo();
  //cout << "num = " << num << endl;
  foo();
}


